<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>电影列表页面</title>

</head>
<body>
<h3>欢迎<a th:href="@{/user/record}" th:text="${session.user.userName}"/></h3>
<h3>在线人数<span th:text="${application.onlinecount}"></span>人</h3>
<a th:href="@{/login/exit}">[退出系统]</a>

<h1 align="center">电影列表</h1>
<hr >
<table border="1px" align="center" width="50%">
    <tr>
        <th>电影编号</th>
        <th>电影名字</th>
        <th>电影评分</th>
        <th>操作</th>
    </tr>

    <tr th:each="movie : ${movies}">
        <td th:text="${movie.id}"></td>
        <td th:text="${movie.movieName}"></td>
        <td th:text="${movie.movieScore}"></td>
        <td><a th:href="@{'/user/look/' + ${movie.id}}">观看</a></td>
    </tr>

</table>

</body>
</html>
